package com.ftg.learn.chapter15.proxy;

/**
 * @author KangJx
 * @date 2021/7/28
 */
public class CompanyProxy implements ISinger{

    private ISinger is;

    public CompanyProxy(ISinger is){
        this.is = is;
    }

    //spring aop
    @Override
    public void singSong(String name) {
        System.out.println("我先谈钱");
        System.out.println("推广 ： feiwen");
        System.out.println("开演唱会");
        is.singSong(name);
        System.out.println("感谢大家");
    }
}